Crate ff[][src]

Expand description

This crate provides traits for working with finite fields.

Structs

A non-allocating batch inverter.

Traits

Extension trait for iterators over mutable field elements which allows those field elements to be inverted in a batch.

Helper for size awareness on Sized storage regions.

This trait represents an element of a field.

This represents an element of a prime field.

This represents the bits of an element of a prime field.

Functions

Calculate a + b + carry, returning the sum and modifying the carry value.

Calculate a + (b * c) + carry, returning the least significant digit and setting carry to the most significant digit.

Calculate a - b - borrow, returning the result and modifying the borrow value.

Type Definitions

Bit representation of a field element.

Derive Macros

Derive the PrimeField trait.